import request from '@/sheep/request';

export default {
    //回款列表
    getReturnedInfo: (params) =>
    request({
      url: 'api/returned_info/index',
      method: 'GET',
      	params,
      custom: {
        showSuccess: false,
        successMsg: '',
        showError: true,
        errorMsg: '',
        showLoading: true,
        loadingMsg: '加载中',
        auth: true,
      },
    }),

//回款详情
  getReturnedView: (params) =>
    request({
      url: 'api/returned_info/view',
      method: 'GET',
      	params,
      custom: {
        showSuccess: false,
        successMsg: '',
        showError: true,
        errorMsg: '',
        showLoading: false,
        loadingMsg: '加载中',
        auth: true,
      },
    }),
//回款新增
  postReturnedAdd: (params) =>
    request({
      url: 'api/returned_info/add',
      method: 'POST',
      	params,
      custom: {
        showSuccess: true,
        successMsg: '',
        showError: true,
        errorMsg: '',
        showLoading: true,
        loadingMsg: '加载中',
        auth: true,
      },
    }),
//回款删除
  getReturnedDel: (params) =>
    request({
      url: '/api/returned_info/del',
      method: 'GET',
      params,
      custom: {
         showSuccess: true,
        successMsg: '',
        showError: true,
        errorMsg: '',
        showLoading: true,
        loadingMsg: '加载中',
        auth: true,
      },
    }),
//回款修改
  getReturnedEdit: (params) =>
    request({
      url: 'api/returned_info/edit',
      method: 'POST',
      params,
      custom: {
         showSuccess: true,
        successMsg: '',
        showError: true,
        errorMsg: '',
        showLoading: true,
        loadingMsg: '加载中',
        auth: true,
      },
    }),
//银行卡
  getBankInfo: (params) =>
    request({
      url: 'api/bank/index',
      method: 'GET',
      params,
      custom: {
        showSuccess: false,
        successMsg: '',
        showError: true,
        errorMsg: '',
        showLoading: true,
        loadingMsg: '加载中',
        auth: true,
      },
    }),

}